﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CardInChina.Data.Entity.Entity;
using CardInChina.Data.Entity.Interface;

namespace CardInChina.Bussiness.Frontend.Interface
{
    public class CardBusinessService
    {
        private CardService cs = new CardService();
        public IEnumerable<Card> Get2SalePromotionCard()
        {
            return cs.GetSalePromotionCards(2);
        }

        public Card GetCardByCardKey(string cardKey)
        { 
            if(string.IsNullOrEmpty(cardKey)) throw new ArgumentNullException("cardKey");
            return cs.GetCardEntityByCardKey(cardKey);
        }

    }
}
